<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

	<title>Simpla Admin</title>


	<!--                       CSS                       -->

	<!-- Reset Stylesheet -->
	<link rel="stylesheet" href="resources/css/reset.css" type="text/css"
		media="screen" />

	<!-- Main Stylesheet -->
	<link rel="stylesheet" href="resources/css/style.css" type="text/css"
		media="screen" />
	<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
	<link rel="stylesheet" href="resources/css/invalid.css" type="text/css"
		media="screen" />

	<link href="resources/css/mystil/stil.css" rel="stylesheet"
		type="text/css" />
	<link href="resources/css/mytheme.css" rel="stylesheet" type="text/css" />
	<link href="resources/css/main.css" rel="stylesheet" type="text/css" />
	<link href="resources/css/add15.css" rel="stylesheet" type="text/css" />
	<link href="resources/css/welcome.css" rel="stylesheet" type="text/css" />
	<link href="resources/css/print113.css" rel="stylesheet"
		type="text/css" media="print" />
	<link href="resources/css/default.css" rel="stylesheet" type="text/css" />
	<link href="resources/css/fileupload.css" rel="stylesheet" type="text/css" />

	<!-- Colour Schemes
	  
		Default colour scheme is green. Uncomment prefered stylesheet to use it.
		
		<link rel="stylesheet" href="resources/css/blue.css" type="text/css" media="screen" />
		
		<link rel="stylesheet" href="resources/css/red.css" type="text/css" media="screen" />  
	 
		-->

	<!-- Internet Explorer Fixes Stylesheet -->

	<!--[if lte IE 7]>
			<link rel="stylesheet" href="resources/css/ie.css" type="text/css" media="screen" />
		<![endif]-->

	<!--                       Javascripts                       -->

	<!-- jQuery -->
	<script type="text/javascript"
		src="resources/scripts/jquery-1.3.2.min.js"></script>

	<!-- jQuery Configuration -->
	<script type="text/javascript"
		src="resources/scripts/simpla.jquery.configuration.js"></script>

	<!-- Facebox jQuery Plugin -->
	<script type="text/javascript" src="resources/scripts/facebox.js"></script>

	<!-- jQuery WYSIWYG Plugin -->
	<script type="text/javascript"
		src="resources/scripts/jquery.wysiwyg.js"></script>

	<!-- jQuery Datepicker Plugin -->
	<script type="text/javascript"
		src="resources/scripts/jquery.datePicker.js"></script>
	<script type="text/javascript" src="resources/scripts/jquery.date.js"></script>
	<!--[if IE]><script type="text/javascript" src="resources/scripts/jquery.bgiframe.js"></script><![endif]-->


	<h:outputScript library="primefaces" name="jquery/jquery.js" />

	<h:outputScript library="js" name="primefaces_all.js" />

	<h:outputScript library="js" name="jquery.meio.mask.js" />
	<h:outputScript library="js" name="document_ready.js" />



	<!-- Internet Explorer .png-fix -->

	<!--[if IE 6]>
			<script type="text/javascript" src="resources/scripts/DD_belatedPNG_0.0.7a.js"></script>
			<script type="text/javascript">
				DD_belatedPNG.fix('.png_bg, img, li');
			</script>
		<![endif]-->

	<style>
.ui-helper-hidden {
	display: none;
}
</style>
</h:head>
<h:body>
	<div id="body-wrapper">
		<!-- Wrapper for the radial gradient background -->

		<div id="sidebar">
			<div id="sidebar-wrapper">
				<!-- Sidebar with logo and menu -->

				<!-- Logo (221px wide) -->
				<a href=""><img id="logo" src="resources/images/logo.png" 
					alt="Simpla Admin logo" /></a>

				<h:form>
				<div style="text-align: center">
					<div class="imgClass" style="width: 200px;height: 200px;margin: 0 auto; ">
						<p:graphicImage rendered="#{not empty userSessionBean.currentUser.resim}" value="#{userSessionBean.currentUser.resim}" width="180"
							height="180" style="padding:10px 0"/>
						<p:graphicImage rendered="#{empty userSessionBean.currentUser.resim}" url="resources/images/logo.png" width="180"
							height="180" style="padding:10px 0"></p:graphicImage>
					</div>
				</div>

				<!-- Sidebar Profile links -->
				<div id="profile-links" style="margin-top:10px"> 
					Merhaba, #{userSessionBean.currentUser.ad} #{userSessionBean.currentUser.soyad}<br />
					<a href="" rel="modal" title="3 Messages">3 Yeni Mesajınız var</a> | <p:commandLink value="Çıkış" action="#{userSessionBean.logout()}"></p:commandLink>
				</div> 
				</h:form> 

				<ui:include src="left_menu.xhtml" />

				<div id="messages" style="display: none">
					<!-- Messages are shown when a link with these attributes are clicked: href="" rel="modal"  -->

					<h3>3 Messages</h3>

					<p>
						<strong>17th May 2009</strong> by Admin<br /> Lorem ipsum dolor
						sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi
						at felis aliquet congue. <small><a href=""
							class="remove-link" title="Remove message">Remove</a></small>
					</p>

					<p>
						<strong>2nd May 2009</strong> by Jane Doe<br /> Ut a est eget
						ligula molestie gravida. Curabitur massa. Donec eleifend, libero
						at sagittis mollis, tellus est malesuada tellus, at luctus turpis
						elit sit amet quam. Vivamus pretium ornare est. <small><a
							href="" class="remove-link" title="Remove message">Remove</a></small>
					</p>

					<p>
						<strong>25th April 2009</strong> by Admin<br /> Lorem ipsum dolor
						sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi
						at felis aliquet congue. <small><a href=""
							class="remove-link" title="Remove message">Remove</a></small>
					</p>

					<form action="" method="post">

						<h4>New Message</h4>

						<fieldset>
							<textarea class="textarea" name="textfield" cols="79" rows="5"></textarea>
						</fieldset>

						<fieldset>

							<select name="dropdown" class="small-input">
								<option value="option1">Send to...</option>
								<option value="option2">Everyone</option>
								<option value="option3">Admin</option>
								<option value="option4">Jane Doe</option>
							</select> <input class="button" type="submit" value="Send" />

						</fieldset>

					</form>

				</div>
				<!-- End #messages -->

			</div>
		</div>
		<!-- End #sidebar -->

		<div id="main-content">
			<!-- Main Content Section with everything -->
			<h:form id="bodyForm">
				<div class="masthead">
					<div>
						<div class="prev_next noprint">
							<p:commandLink value="#{appbundle.lbl_back}"
								styleClass="imageClass"
								action="#{mainTemplateBean.previousPageAction}"
								rendered="#{mainTemplateBean.showBackButton}" ajax="false">
								<!--  h:graphicImage value="#{applicationBean.themeImagePath}back_btn.png" title="Next" alt="Next2"/-->
							</p:commandLink>
						</div>
						<h:panelGroup id="CrumbsPanel"
							rendered="#{mainTemplateBean.showCrumbs}">
							<div class="crumbsRoot">
								<h:outputText value="#{mainTemplateBean.crumbsRoot} > " />
								<span> <h:outputText
										value="#{mainTemplateBean.crumbsLast}" /></span>
							</div>
						</h:panelGroup>
						<h:panelGroup id="NotCrumbsPanel"
							rendered="#{not mainTemplateBean.showCrumbs}">
							<div class="crumbsRoot">
								<p:spacer height="10px" />
							</div>
						</h:panelGroup>
						<h:panelGroup id="PageTitlePanel"
							rendered="#{mainTemplateBean.showTitle}">
							<div class="pageTitleHeader">
								<div class="pageTitle">
									<h:outputText value="#{mainTemplateBean.pageTitle}" />
								</div>
							</div>
						</h:panelGroup>
						<h:panelGroup id="NotPageTitlePanel"
							rendered="#{not mainTemplateBean.showTitle}">
							<p:spacer height="20px" />
						</h:panelGroup>
					</div>
				</div>


				<div style="float: right;">
					<!-- p:status -->
					<p:ajaxStatus style="width:16px;height:16px;" id="ajaxStatusPanel">
						<f:facet name="start">
							<h:graphicImage value="/resources/images/ajaxloading.gif" />
						</f:facet>
						<f:facet name="complete">
							<h:outputText value="" />
						</f:facet>
					</p:ajaxStatus>
				</div>

				<ui:insert name="content" />
				<ui:include src="/includes/Loading.xhtml" />
				<!--  ui:include src="/includes/PopupMessages.xhtml" /-->
				<p:growl id="successMsg" showDetail="true" globalOnly="true" />
<!-- 				<p:growl id="successMsg" showDetail="true" for="successMsg" /> -->
			</h:form>
            <ui:insert name="bodyFrms"></ui:insert>

			<div id="footer">
				<small> <!-- Remove this notice or replace it with whatever you want -->
					&#169; Copyright 2009 Your Company | Powered by <a
					href="http://themeforest.net/item/simpla-admin-flexible-user-friendly-admin-skin/46073">Simpla
						Admin</a> | <a href="">Top</a>
				</small>
			</div>
			<!-- End #footer -->

		</div>
		<!-- End #main-content -->

	</div>


	<!-- p:layout fullPage="true" closeTitle="Kapat" collapseTitle="Gizle" expandTitle="GÃ¶ster">
			<p:layoutUnit position="north" size="100">
				<h:outputText value="Header" />
			</p:layoutUnit>

			<p:layoutUnit position="south" size="50">
				<h:outputText value="Footer" />
			</p:layoutUnit>

			<p:layoutUnit position="west" size="200" header="Left"
				resizable="true" closable="false" collapsible="true" effect="drop">
				<h:outputText value="Left Menu" />
			</p:layoutUnit>
 
			<p:layoutUnit position="east" size="200" header="Right"
				resizable="true" closable="false" collapsible="true" effect="drop" collapsed="true">
				<h:outputText value="Right menu." />
			</p:layoutUnit>

			<p:layoutUnit position="center">
				<h:form id="form">
					<ui:insert name="content"/>
				</h:form>
			</p:layoutUnit>

		</p:layout-->
</h:body>
</html>
